package com.kotlin.network.bean;

import java.io.Serializable;

/**
 * Author：xudong
 * Date: 17/5/6 22:11
 */

public class LoginBean implements Serializable{


    /**
     * accesstoken : 1f934840003fc2317f0f0b4e06520f6a
     * role : 1
     * role_name : 巡查员
     * uid : 1
     * nickname : 昵称
     */
    //角色 1巡查员 2维修员

    public static final int patroller = 1;//巡查员
    public static final int maintenance_staff = 2;//维修员
    public static final String LoginBean = "loginBean";
    private String accesstoken;
    private int role;
    private String role_name;
    private int uid;
    private String nickname;


    public boolean isPatroller()
    {
        return role == patroller;
    }

    public boolean isMaintenanceStaff()
    {
        return role == maintenance_staff;
    }

    public String getAccesstoken() {
        return accesstoken;
    }

    public void setAccesstoken(String accesstoken) {
        this.accesstoken = accesstoken;
    }

    public int getRole() {
        return role;
    }

    public void setRole(int role) {
        this.role = role;
    }

    public String getRole_name() {
        return role_name;
    }

    public void setRole_name(String role_name) {
        this.role_name = role_name;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }
}
